﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MinistryStandardPlatformBusiness.MessagePool.Entity
{
  public  class LatestGpsInfo
    {
        private string altitude;

        public string Altitude
        {
            get { return altitude; }
            set { altitude = value; }
        }
        private string devSpeed;

        public string DevSpeed
        {
            get { return devSpeed; }
            set { devSpeed = value; }
        }
        private string direction;

        public string Direction
        {
            get { return direction; }
            set { direction = value; }
        }
        private string distance;

        public string Distance
        {
            get { return distance; }
            set { distance = value; }
        }
        private string gpsDistance;

        public string GpsDistance
        {
            get { return gpsDistance; }
            set { gpsDistance = value; }
        }
        private string latitude;

        public string Latitude
        {
            get { return latitude; }
            set { latitude = value; }
        }
        private string longitude;

        public string Longitude
        {
            get { return longitude; }
            set { longitude = value; }
        }
        private string nlatitude;

        public string Nlatitude
        {
            get { return nlatitude; }
            set { nlatitude = value; }
        }

        private string nlongitude;

        public string Nlongitude
        {
            get { return nlongitude; }
            set { nlongitude = value; }
        }
        private string oil;

        public string Oil
        {
            get { return oil; }
            set { oil = value; }
        }
        private string attachOil;

        public string AttachOil
        {
            get { return attachOil; }
            set { attachOil = value; }
        }

        private string satelliteNum;

        public string SatelliteNum
        {
            get { return satelliteNum; }
            set { satelliteNum = value; }
        }
        private string signalStrength;

        public string SignalStrength
        {
            get { return signalStrength; }
            set { signalStrength = value; }
        }
        private string simId;

        public string SimId
        {
            get { return simId; }
            set { simId = value; }
        }
        private string speed;

        public string Speed
        {
            get { return speed; }
            set { speed = value; }
        }
        private string upTime;

        public string UpTime
        {
            get { return upTime; }
            set { upTime = value; }
        }

        private string poi;

        public string Poi
        {
            get { return poi; }
            set { poi = value; }
        }

        private string warnSign;

        public string WarnSign
        {
            get { return warnSign; }
            set { warnSign = value; }
        }
        private string statusSign;

        public string StatusSign
        {
            get { return statusSign; }
            set { statusSign = value; }
        }
        public string VehicleId{get;set;}

        public string battery{get;set;}
        public string vehicleNum { get; set; }

        public string Memo { get; set; }

        public bool IsValid()
        {
            return !string.IsNullOrEmpty(this.Longitude) && this.Longitude != "0" && this.Longitude != "null" &&
                !string.IsNullOrEmpty(this.Latitude) && this.Latitude != "0" && this.Latitude != "null" &&
                !string.IsNullOrEmpty(this.Nlongitude) && this.Nlongitude != "0" && this.Nlongitude != "null" &&
                !string.IsNullOrEmpty(this.Nlatitude) && this.Nlatitude != "0" && this.Nlatitude != "null";
        }

    }
}
